package com.example.finalproject.car;

public class Car {

    private String carName;

    private String carId;
    //续航公里数，公里
    private String endurance;
    //时速，公里/小时
    private Double speed;
    //百公里加速，秒
    private String acceleration;
    //普通型价格,￥
    private double midPrice;
    //豪华型价格,￥
    private double topPrice;

    private String imgURL;

    public String getCarName() {
        return carName;
    }

    public void setCarName(String carName) {
        this.carName = carName;
    }

    public String getCarId() {
        return carId;
    }

    public void setCarId(String carId) {
        this.carId = carId;
    }

    public String getEndurance() {
        return endurance;
    }

    public void setEndurance(String endurance) {
        this.endurance = endurance;
    }

    public Double getSpeed() {
        return speed;
    }

    public void setSpeed(Double speed) {
        this.speed = speed;
    }

    public String getAcceleration() {
        return acceleration;
    }

    public void setAcceleration(String acceleration) {
        this.acceleration = acceleration;
    }

    public double getMidPrice() {
        return midPrice;
    }

    public void setMidPrice(double midPrice) {
        this.midPrice = midPrice;
    }

    public double getTopPrice() {
        return topPrice;
    }

    public void setTopPrice(double topPrice) {
        this.topPrice = topPrice;
    }

    public String getImgURL() {
        return imgURL;
    }

    public void setImgURL(String imgURL) {
        this.imgURL = imgURL;
    }

    @Override
    public String toString() {
        return "Car{" +
                "carName='" + carName + '\'' +
                ", carId='" + carId + '\'' +
                ", endurance='" + endurance + '\'' +
                ", speed=" + speed +
                ", acceleration='" + acceleration + '\'' +
                ", midPrice=" + midPrice +
                ", topPrice=" + topPrice +
                ", imgURL='" + imgURL + '\'' +
                '}';
    }
}
